package lp.polimi.treefinder.utils;

import java.io.Serializable;

public class RankElement implements Serializable {
	
	/**
	 * Structure containing name and picture of a leaf which is in the final ranking.
	 * It is serializable, as it's sent to the client through socket.
	 */
	private static final long serialVersionUID = -1190287730504427606L;
	private byte[] photo;
	private String name;
	
	public RankElement(byte[] photo, String name) {
		super();
		this.photo = photo;
		this.name = name;
	}

	public byte[] getPhoto() {
		return photo;
	}

	public void setPhoto(byte[] photo) {
		this.photo = photo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return getName();
	}

}
